home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / fcntl.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. FCNTL(3)            MINTLIB LIBRARY FUNCTIONS            FCNTL(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        fcntl - file control
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <fcntl.h>
  12.  
  13.        int fcntl(int fildes, int cmd, ...);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        fcntl  provides  for  control over open files. fildes is a
  17.        file descriptor obtained from a creat, dup, fcntl, open or
  18.        pipe call.
  19.  
  20.        Since  the  fcntl  call is nothing but an interface to the
  21.        Fcntl system call, the user is referred to the Fcntl  page
  22.        for an overview of available commands.
  23.  
  24. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  25.        c✓cr✓re✓ea✓at✓t(✓(3✓3)✓),✓, d✓du✓up✓p(✓(3✓3)✓),✓, f✓fc✓cn✓nt✓tl✓l(✓(3✓3)✓),✓, o✓op✓pe✓en✓n(✓(3✓3)✓),✓, p✓pi✓ip✓pe✓e(✓(3✓3)✓)
  26.  
  27. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  28.        See  Fcntl for a detailed description of return codes.  In
  29.        general, -1 is returned on failure; any other value  indi-
  30.        cates  success;  the  meaning  is dependent on the command
  31.        executed.
  32.  
  33. N✓NO✓OT✓TE✓ES✓S
  34.        Under TOS, fcntl always returns -1.
  35.  
  36.        The available commands for Fcntl tend to increase all  the
  37.        time; the current list is likely to be out of date.
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.